Extension point environment
Documentation
Extension point to contribute environment configuration.
Available options are: - name: comma-separated string attribute used as the environment parameters scope. It can be empty to set environment parameters common to all commands, equal to a command name to set parameters for that command only, or equal to a command line to set parameters common to all commands using that command line. You can associate multiple commands using a comma as separator.
- workingDirectory: the Folder when command should be executed. Default is the system temporary folder.
- parameters/parameter
CommandLine contribution example:
<environment name="aCommandName,aCommandLine">
<parameters>
<parameter name="SOME_VAR">some value</parameter>
</parameters>
</environment>
Contribution Descriptors
- Class: org.nuxeo.ecm.platform.commandline.executor.service.EnvironmentDescriptor
Existing Contributions
Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.
-
<extension point="environment" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent"> <environment name="exiftool"> <parameters> <!-- See http://search.cpan.org/dist/PAR/lib/PAR.pm#Notes --> <parameter name="PAR_GLOBAL_TMPDIR">/Users/arnaud/Nuxeo/distrib/nuxeo-server-tomcat-9.10/tmp</parameter> <!-- set PAR_CLEAN cleaning PAR_GLOBAL_TEMP after execution --> <!-- <parameter name="PAR_CLEAN">0</parameter> --> </parameters> </environment> </extension>
-
<extension point="environment" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent"> <documentation>Default environment parameters.</documentation> <environment> <parameters> <!-- TMPDIR is the canonical Unix environment variable specified in various Unix and similar standards --> <!-- TMP, TEMP and TEMPDIR are alternatively used by non-POSIX OS or non-standard programs --> <!-- Windows/DOS programs randomly use TMP or TEMP environment variables --> <parameter name="TMPDIR">/Users/arnaud/Nuxeo/distrib/nuxeo-server-tomcat-9.10/tmp</parameter> <parameter name="TMP">/Users/arnaud/Nuxeo/distrib/nuxeo-server-tomcat-9.10/tmp</parameter> <parameter name="TEMP">/Users/arnaud/Nuxeo/distrib/nuxeo-server-tomcat-9.10/tmp</parameter> <parameter name="TEMPDIR">/Users/arnaud/Nuxeo/distrib/nuxeo-server-tomcat-9.10/tmp</parameter> </parameters> </environment> </extension>